
using System;
using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;


[Serializable]
public class Property
{
    public float hp;
    public float mp;
    public float attack;
    public float defense;
    public float speed;
}


public class Character: MonoBehaviour
{
    public Property property;

    public bool IsCanBeKill(DamageInfo damageInfo)
    {
        property.hp -= damageInfo.damage;
        if (property.hp <= 0)
        {
            return true;
        }

        return false;
    }

    // public void hit(DamageInfo damageInfo)
    public void btn_hit()
    {
        var damageInfo = new DamageInfo();
        damageInfo.damage = 10;
        damageInfo.creator = gameObject;
        damageInfo.target = gameObject;
        TestDamageManager.instance.SubmitDamage(damageInfo);
    }
}

